package xmlparse;

import gui.DayPopUp;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;

import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.xpath.XPathExpressionException;
import org.xml.sax.SAXException;

import vars.Variables;

public class XMLParser implements Variables {

	private File xmlFile;

	public XMLParser(String xmlNote, ArrayList<String> finalList, DayPopUp dpu)
			throws ParserConfigurationException, TransformerException,
			SAXException, IOException, XPathExpressionException {

		xmlFile = new File(myXMLPath);
		XMLHandling handle = new XMLHandling(xmlFile, xmlNote, dpu);

		handle.appendToExisting(finalList);
	}
}
